package com.blog.model;

/**
 * @Description: 错误码枚举
 * @Author: 刘会俊
 * @Date: 2018-12-21 15:21
 */
public enum  ErrorEnum {

    SUCCESS(200,"操作成功"),
    FAilED(500,"操作失败");

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ErrorEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }}
